<fieldset class="column-left2" id="agrupacion">
<h2>Tabla de busqueda</h2>
<% if @cultural_heritage_cultural_heritages.size > 0 %>

<br></br>
<table frame="border"class="table-general" id="list_to_select">
  <tr>
  <th>Código</th>
  <th>Nombre de Patrimonio</th>
  <th>Descripcion</th>
   <th>Estado</th>
     <th>Subgrupo</th>
  <th>Tipología</th>
     <th>Cultura</th>
   
    <th>Acciones</th>    
  </tr>

<% @cultural_heritage_cultural_heritages.each do |cultural_heritage_cultural_heritage| %>
  <tr
    <td class="national_registration_code"><%= cultural_heritage_cultural_heritage.nationalRegistrationCode %></td>
    <td class="name"><%= cultural_heritage_cultural_heritage.name %></td>
    <td><%= cultural_heritage_cultural_heritage.description %></td>
    <td><%= cultural_heritage_cultural_heritage.obj_state.name %></td>
    <td><%= cultural_heritage_cultural_heritage.obj_subGroup.name %> </td>
    <td>
    <% if !cultural_heritage_cultural_heritage.tipology.blank? %>
      <%= cultural_heritage_cultural_heritage.obj_tipology.name %>  
    <%end%>
    </td>
    <td>
      <% if !cultural_heritage_cultural_heritage.culture.blank?  %>
        <%= cultural_heritage_cultural_heritage.obj_culture.name %>
      <%end%>
    </td>
    <td>      
      <a href="#" cultural-heritage-id='<%= cultural_heritage_cultural_heritage.id %>' class="js_link_cultural_heritage" title="Asociar">Asociar</a>
    </td>
    </tr>
<% end %>
</table>
<% else %>
  <p>Ningun Patrimonio Cultural Encontrado</p>
<% end %>
  </fieldset>